/* AI Copilot 侧边栏样式 */

.copilot-sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  overflow-y: auto;
}

.copilot-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
}

.copilot-card .ant-card-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px 8px 0 0;
}

.copilot-card .ant-card-head-title {
  color: white;
}

.copilot-card .ant-tabs-tab {
  color: rgba(255, 255, 255, 0.8);
}

.copilot-card .ant-tabs-tab-active {
  color: white;
}

.copilot-card .ant-tabs-ink-bar {
  background: white;
}

/* 建议列表 */
.suggestion-item {
  padding: 12px !important;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s;
}

.suggestion-item:hover {
  background-color: #f5f7fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  border-radius: 8px;
  font-size: 18px;
  color: #667eea;
}

.suggestion-item .ant-list-item-meta-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.suggestion-item .ant-list-item-meta-description {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 质量评分 */
.quality-score {
  padding: 20px;
}

.overall-score {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.score-text {
  text-align: center;
}

.score-number {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.score-breakdown {
  margin-bottom: 24px;
}

.score-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.score-item .score-label {
  width: 60px;
  font-size: 13px;
  color: #333;
  margin-right: 12px;
}

.score-item .ant-progress {
  flex: 1;
}

/* 评分提示 */
.score-tips {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
}

.score-tips h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.score-tips p {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* 加载状态 */
.copilot-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* 快捷键提示 */
.copilot-tips {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.copilot-tips h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
}

.copilot-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.copilot-tips li {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.copilot-tips kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  color: #333;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-right: 8px;
  min-width: 24px;
  text-align: center;
}

/* 响应式 */
@media (max-width: 1200px) {
  .copilot-sidebar {
    position: relative;
    height: auto;
    margin-bottom: 20px;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item {
  animation: fadeIn 0.3s ease;
}

/* 优先级标签样式 */
.ant-tag {
  font-size: 11px;
  padding: 0 6px;
  line-height: 18px;
  border-radius: 4px;
}

/* 应用按钮 */
.suggestion-item .ant-btn-link {
  color: #667eea;
  font-size: 12px;
  padding: 0;
}

.suggestion-item .ant-btn-link:hover {
  color: #764ba2;
}

/* 空状态 */
.ant-empty-description {
  font-size: 13px;
  color: #999;
}

/* 滚动条样式 */
.copilot-sidebar::-webkit-scrollbar {
  width: 6px;
}

.copilot-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.copilot-sidebar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.copilot-sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}